package com.dd.keel.core.common.utils;

import java.lang.StringBuilder;

public class StringBuf {

	StringBuilder sb = new StringBuilder(500);
	
	public StringBuf append(Object obj)
	{
		sb.append(obj);
		return this;
	}
	
	public StringBuf insertHead(Object obj)
	{
		sb.insert(0, obj);
		return this;
	}
	
	public StringBuf append(String str)
	{
		sb.append(str);
		return this;
	}
	
	public StringBuf insertHead(String str)
	{
		sb.insert(0, str);
		return this;
	}
	
	public StringBuf append(char c)
	{
		sb.append(c);
		return this;
	}
	
	public StringBuf insertHead(char c)
	{
		sb.insert(0, c);
		return this;
	}
	
	public StringBuf append(int n)
	{
		sb.append(n);
		return this;
	}
	
	public StringBuf insertHead(int n)
	{
		sb.insert(0, n);
		return this;
	}
	
	public StringBuf append(long n)
	{
		sb.append(n);
		return this;
	}
	
	public StringBuf insertHead(long n)
	{
		sb.insert(0, n);
		return this;
	}
	
	public StringBuf clear()
	{
		sb.delete(0, sb.length());
		return this;
	}
	
	public String toString()
	{
		return sb.toString();
	}
	
}
